<!--
 * @Author: zsc
 * @Date: 2022-06-21 23:13:42
 * @LastEditors: zsc
 * @LastEditTime: 2022-06-25 15:46:36
 * @Description:企业状态管理
-->
<template>
  <el-select
    :value="value"
    placeholder="请选择出租方"
    clearable
    @input="$emit('input', $event)"
  >
    <el-option
      v-for="item in stateOptions"
      :key="item.id"
      :label="item.name"
      :value="item.id"
    />
  </el-select>
</template>

<script>
export default {
  props: {
    value: {
      type: [Number, String],
      default: ''
    }
  },
  data() {
    return {
      listQuery: {

      },
      stateOptions: []
    }
  },
  computed: {},
  created() {
    this.getList()
  },
  methods: {
    async getList() {
      this.stateOptions = [
        { name: '暂定1', id: 1 },
        { name: '暂定2', id: 2 },
        { name: '暂定3', id: 3 }
      ]
    }

  }
}
</script>
